
import Vue from "vue";
import vueX from "vuex";

Vue.use(vueX);


export default new vueX.Store({
    state: {
        isLoading: false,
        orderDetails: "",
        port: "",
        payment: "",
        collect: "",
        evaluate: "",


    },
    mutations: {
        mChangeIsLoading(state, payload) {
            state.isLoading = payload;
        },
        mChangePort(state, payload) {
            state.port = payload;
        },
        mChangeOrderDetails(state, payload) {
            state.orderDetails = payload;
        },
        mChangePayment(state, payload) {
            state.payment = payload;
        },
        mChangeCollect(state, payload) {
            state.collect = payload;
        },
        mChangeEvaluate(state, payload) {
            state.evaluate = payload;
        },
    },
    actions: {


    }
})
// 传